<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main"/>
    <g:set var="entityName" value="${message(code: 'batchEstate.label', default: 'BatchEstate')}"/>
    <title>批次评估管理</title>
</head>

<body>
<div class="small-header transition animated fadeIn">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right">
                <ol class="hbreadcrumb breadcrumb">
                    <li>CINDATA PLS</li>
                    <li>
                        批次管理
                    </li>
                    <li class="active">
                        <span>批次评估</span>
                    </li>
                </ol>
            </div>

            <h2 class="font-light m-b-xs">
                批次评估
            </h2>
        </div>
    </div>
</div>

<div class="content animate-panel">
    <div class="row">
        <div class="hpanel hgreen contact-panel">
            <div class="panel-heading">
                <div class="panel-tools">
                        <g:link class="btn btn-info btn-xs" action="edit" resource="${this.batchEstate}"><i class="fa fa-edit"></i>编辑</g:link>
                </div>
                批次评估基本信息
            </div>

            <div class="panel-body">
                <div class="text-muted font-bold m-b-xs ol-md-6">
                    <div class="col-md-12">
                        <h4>
                            批次评估 ${this.batchEstate?.estate?.name}
                        </h4>
                    </div>
                </div>
            </div>

            <div class="panel-footer contact-footer">
                <div class="row">

                    <div class="col-md-3 border-right">

                        <div class="contact-stat">
                            <span>名称</span>
                            <strong>${this.batchEstate?.estate?.name}</strong>
                        </div>
                    </div>

                    <div class="col-md-3 border-right">

                        <div class="contact-stat">
                            <span>执行次序</span>
                            <strong>${this.batchEstate?.estate?.name}</strong>
                        </div>
                    </div>

                    <div class="col-md-3 border-right">

                        <div class="contact-stat">
                            <span>是否回退</span>
                            <strong>${this.batchEstate?.estate?.name}</strong>
                        </div>
                    </div>

                    <div class="col-md-3 border-right">

                        <div class="contact-stat">
                            <span>页面</span>
                            <strong>${this.batchEstate?.estate?.name}</strong>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="hpanel hred">
            <div class="panel-heading">
                <div class="panel-tools">
                    <g:link class="btn btn-info btn-xs" controller="batchEstateCondition" action="create" params="[batchEstate: this.batchEstate.id]">
                        <i class="fa fa-plus"></i>新增
                    </g:link>
                </div>
                评估押品
            </div>

            <div class="panel-body no-padding">
                <div class="table-responsive">
                    <table class="table table-striped table-bordered table-hover">
                        <thead>
                            <th>执行次序</th>
                            <th>组件</th>
                            <th>分支</th>
                            <th>描述</th>
                            <th>操作</th>
                        </thead>
                        <tbody>
                            <g:each in="${com.cindata.batchEstateCondition.findAllBybatchEstate(this?.batchEstate, [sort: 'executeSequence', order: 'asc'])}">
                                <tr>
                                    <td>43434334</td>
                                    <td>43434334</td>
                                    <td>43434334</td>
                                    <td>43434334</td>
                                    <td width="10%" class="text-center">
                                        <g:link class="btn btn-primary btn-xs btn-outline" style="display: inline-block" controller="batchEstateCondition" action="edit" id="${it?.id}">
                                            <i class="fa fa-edit"></i>
                                            编辑
                                        </g:link>
                                        <g:form controller="batchEstateCondition" action="delete" style="display: inline-block" style="display: inline-block" id="${it.id}" method="DELETE">
                                            <button class="deleteBtn btn btn-danger btn-xs btn-outline" type="button">
                                                <i class="fa fa-trash-o"></i>删除
                                            </button>
                                        </g:form>
                                    </td>
                                </tr>
                            </g:each>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="hpanel hviolet">
            <div class="panel-heading">
                <div class="panel-tools">
                    <g:link class="btn btn-info btn-xs" controller="batchEstateEvent" action="create" params="[batchEstate: this.batchEstate.id]">
                        <i class="fa fa-plus"></i>新增
                    </g:link>
                </div>
                评估机构
            </div>

            <div class="panel-body no-padding">
                <div class="table-responsive">
                    <table class="table table-striped table-bordered table-hover">
                        <thead>
                        <tr>
                            <g:sortableColumn property="executeSequence" title="${message(code: 'opportuniryWorkflowEvent.executeSequence.label', default: '执行次序')}"/>
                            <g:sortableColumn property="isSynchronous" title="${message(code: 'opportuniryWorkflowEvent.isSynchronous.label', default: '同步执行')}"/>
                            <g:sortableColumn property="component" title="${message(code: 'opportuniryWorkflowEvent.component.label', default: '组件')}"/>
                            <g:sortableColumn width="10%" property="operation" class="text-center" title="操作"/>
                        </tr>
                        </thead>
                        <tbody>
                            <g:each in="${com.cindata.batchEstateEvent.findAllBybatchEstate(this?.batchEstate, [sort: 'executeSequence', order: 'asc'])}">
                                <tr>
                                    <td>43434334</td>
                                    <td>43434334</td>
                                    <td>43434334</td>
                                    <td width="10%" class="text-center">
                                        <g:link class="btn btn-primary btn-xs btn-outline" style="display: inline-block" controller="batchEstateEvent" action="edit" id="${it?.id}">
                                            <i class="fa fa-edit"></i>
                                            编辑
                                        </g:link>
                                        <g:form controller="batchEstateEvent" action="delete" id="${it.id}" style="display: inline-block" method="DELETE">
                                            <button class="deleteBtn btn btn-danger btn-xs btn-outline" type="button">
                                                <i class="fa fa-trash-o"></i>删除
                                            </button>
                                        </g:form>
                                    </td>
                                </tr>
                            </g:each>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>

</div>

</body>
</html>
